package de.sinnlosimnetz.forum.ws.server;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;

/**
 * <p>
 * Java class for User complex type.
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 * 
 * <pre>
 * &lt;complexType name="User">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="posts" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="lastOnline" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         &lt;element name="picNr" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "User", propOrder = { "name", "posts", "lastOnline", "picNr" })
public class User
{

	@XmlElement(required = true)
	protected String name;
	protected int posts;
	@XmlElement(required = true)
	@XmlSchemaType(name = "dateTime")
	protected XMLGregorianCalendar lastOnline;
	protected int picNr;

	/**
	 * Gets the value of the name property.
	 * 
	 * @return possible object is {@link String }
	 */
	public String getName()
	{
		return name;
	}

	/**
	 * Sets the value of the name property.
	 * 
	 * @param value allowed object is {@link String }
	 */
	public void setName(String value)
	{
		this.name = value;
	}

	/**
	 * Gets the value of the posts property.
	 */
	public int getPosts()
	{
		return posts;
	}

	/**
	 * Sets the value of the posts property.
	 */
	public void setPosts(int value)
	{
		this.posts = value;
	}

	/**
	 * Gets the value of the lastOnline property.
	 * 
	 * @return possible object is {@link XMLGregorianCalendar }
	 */
	public XMLGregorianCalendar getLastOnline()
	{
		return lastOnline;
	}

	/**
	 * Sets the value of the lastOnline property.
	 * 
	 * @param value allowed object is {@link XMLGregorianCalendar }
	 */
	public void setLastOnline(XMLGregorianCalendar value)
	{
		this.lastOnline = value;
	}

	/**
	 * Gets the value of the picNr property.
	 */
	public int getPicNr()
	{
		return picNr;
	}

	/**
	 * Sets the value of the picNr property.
	 */
	public void setPicNr(int value)
	{
		this.picNr = value;
	}

}
